<!DOCTYPE html>
<html>
<head>
  <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
  <meta name="format-detection" content="telephone=no" />
  <meta name="apple-mobile-web-app-capable" content="yes" />
  <title>柬埔寨名迹巡礼</title>
  <link rel='stylesheet' href='stylesheets/index.css' />
  <link rel='stylesheet' href='stylesheets/alertPlus.css' />
  <script>
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "https://hm.baidu.com/hm.js?83174468ae0780c09c2758818b1737e9";
  var s = document.getElementsByTagName("script")[0];
  s.parentNode.insertBefore(hm, s);
})();
</script>

</head>
<body>
  <div class="box-alert box-alert-green"><p class="p-alert-text"></p></div>
  <section class="sec-info">
    <img src="images/share_btn.png" alt="" class="img-share-btn">
    <video playsinline="" webkit-playsinline="" preload="auto" id="video-jpz" width="100%" controls poster="images/poster2.jpg" src="http://video.lalocal.cn/yunying/jianpz222.mp4"></video>

    <img src="images/1130.png" alt="" width="100%" class="sec-info-img">
  </section>

  <section class="sec-desc">
    <img src="images/download.png" alt="" class="img-download-btn hide">
    <img src="images/2818.png" alt="" width="100%" class="sec-desc-img sec-desc-img-mini">
    <img src="images/2815.png" alt="" width="100%" class="sec-desc-img sec-desc-img-full hide">
  </section>
<section class="sec-comments">
  <p class="p-sec-title">评论</p>
  <div class="box-input">
      <input type="text" class="ipt-comment" id="ipt-comment" placeholder="我也来说一句：">

    <button class="btn-send">发送</button>
  </div>
  <button class="btn-new-msg hide">有新的评论，点击查看</button>
  <div class="comments-list">
  <% if(rows.length!=0){
  rows.forEach(function(el) {%>
    <div class="box-comment" value="<%=el.id%>" nickname="<%=el.user.nickName%>">
      <div class="box-comment-usr">
        <img src="<%=el.user.avatar%>" alt="" class="img-comment-avatar">
        <div class="box-comment-nick">
          <p class="p-comment-name"><%=el.user.nickName%>
          <%if(el.targetUser!=null){%>
          <span class="color-grey"> 回复 </span><span><%=el.targetUser.nickName%></span>
          <%}%>
        </p>
          <p class="p-comment-time"><%=el.dateTime%></p>
        </div>
      </div>
      <div class="box-comment-main">
        <p class="p-comment-main"><%=el.content%></p>
      </div>
    </div>
  <%})}%>
</div>
<button class="btn-more-comments">查看更多评论</button>

</section>

<div class="bg-shandow">
  <img src="images/share_cover.png" alt="" width="100%">
</div>
<!-- <div class="box-reply-input">
    <input type="text" class="ipt-reply" id="ipt-reply" placeholder="">
    <button class="btn-reply-cancel">取消</button>
  <button class="btn-reply-send">回复</button>
</div> -->

</body>
<script src="https://res.wx.qq.com/open/js/jweixin-1.0.0.js"></script>
<script src="javascripts/iphone-inline-video.browser.js"></script>

<script src="javascripts/jquery-1.10.1.min.js" charset="utf-8"></script>
<script src="javascripts/alertPlus.js" charset="utf-8"></script>
<script type="text/javascript">
var video = $('#video-jpz').get(0);
makeVideoPlayableInline(video);
// video.addEventListener('touchstart', function () {
//     video.play();
// });

var shareData = {
  title : '女主播带你感受柬埔寨从未见过的日出~',
  desc : '天，当红女主播竟然在柬埔寨花式送礼~',
  imgUrl : '<%=browserURL%>/images/share_icon_2.jpg',
  link : '<%=browserURL%>/second'
};


var wxConfig = {
  appId : '<%=wxConfig.appId%>',
  timestamp : '<%=wxConfig.timestamp%>',
  nonceStr : '<%=wxConfig.nonceStr%>',
  signature : '<%=wxConfig.signature%>'
}

var wxUserInfo = {};

</script>
<script src="javascripts/base.js?v=1.0" charset="utf-8"></script>
<script>
if(location.href.charAt(4) == 's' && !isWechat()){
  console.log('这不是微信环境，且这是个https请求')
  var thisUrl = window.location.href.split('openid')[0];
  console.log(thisUrl);
  window.location.href = 'http'+thisUrl.substring(5);
}
var totalRows = <%=totalRows%> || 10;
var totalPages = <%=totalPages%> || 1;
var targetType = <%=commentInfo.type%>;
var targetId = <%=commentInfo.id%>;
if(isWechat()){
  wxUserInfo.nickname = '<%=userInfo.nickname%>';
  wxUserInfo.headimgurl = '<%=userInfo.headimgurl%>';
  wxUserInfo.openid = '<%=userInfo.openid%>';
  wxUserInfo.unionid = '<%=userInfo.unionid%>';
}

</script>
<script src="javascripts/ajax_wechat.js" charset="utf-8"></script>
<script src="javascripts/index.js" charset="utf-8"></script>

</html>
